let arr = [{ name: 1 }];

arr = arr.filter((a, b) => {
    return b > 2;
})

console.log(arr);